/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.edu.amu.wmi.kino.visualjavafx.model.generators;

import pl.edu.amu.wmi.kino.visualjavafx.model.objects.Canvas;
import pl.edu.amu.wmi.kino.visualjavafx.model.objects.Frame;

/**
 *
 * @author Admin
 */
public class ModelFrameGenerator {
    public static Frame generateFrame(int width,int height,int screenX,int screenY,String title,Canvas canvas){
        Frame f = new Frame();
        f.setWidth(width);
        f.setHeight(height);
        f.setHScreenPosition(screenX);
        f.setVScreenPosition(screenY);
        f.setTitle(title);
        f.setVisibility(true);
        f.setCanvas(canvas);
        f.setResizable(true);
        return f;

    }

}
